//
//  LogicCalculator.h
//  LogicCalculator
//
//  Created by Francisco Gindre on 4/25/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Operand.h"

@interface LogicCalculator : NSObject {
	NSMutableArray *sentence;
	Operand *p;
	Operand *q;
	Operand *r;
	BOOL result;
	

}
- (id)init;
+(Boolean)parse;
- (void) clearSentence:(NSMutableArray *)aSentence;
- (NSString*) sentenceToString :(NSMutableArray *) aSentence;

-(NSMutableArray*)getSentence;

- (Boolean)isSentenceBalanced:(NSMutableArray *)aSentence;

@property (nonatomic,retain) IBOutlet Operand *p;
@property (nonatomic,retain) IBOutlet Operand *q;
@property (nonatomic,retain) IBOutlet Operand *r;
@property (nonatomic,retain) IBOutlet NSMutableArray *sentence;



@end
